package org.frog.sgs.card.strength;

import org.frog.sgs.card.AbstractCard;

/**
 * @author duanxiangqi
 * @date 2012-10-15
 */
public abstract class AbstractStrength extends AbstractCard implements Strength {

	private static final long serialVersionUID = 9101050269869523728L;

	private int maxStrength;

	private int strength;

	public int getMaxStrength() {
		return maxStrength;
	}

	public void setMaxStrength(int maxStrength) {
		this.maxStrength = maxStrength;
	}

	public int getStrength() {
		return strength;
	}

	public void setStrength(int strength) {
		this.strength = strength;
	}

	public String getViewName() {
		return "体力值 " + strength + "/" + maxStrength;
	}

	public String toString() {
		return "AbstractStrength [maxStrength=" + maxStrength + ", strength=" + strength + "]";
	}
}
